When to use "using [alias = ]class_or_namespace;" in c#?
Posted
by Pandiya Chendur
on Stack Overflow
See other posts from Stack Overflow
or by Pandiya Chendur
Published on 2010-06-16T10:50:38Z
Indexed on
2010/06/16
11:02 UTC
Read the original article
Hit count: 147
I saw the following namespace implementation in an article and i really can't get the point why they did so?
using sysConfig =System.Configuration ;
string connectionString = sysConfig.ConfigurationManager.
ConnectionStrings["connectionString"].ConnectionString;
I know It can be easily implemented like this,
string connectionString = System.Configuration.ConfigurationManager.
ConnectionStrings["connectionString"].ConnectionString;
Any suggestion when to use the first type...
© Stack Overflow or respective owner